#ifndef handle_h
#define handle_h

#import "head.h"

@class SceneMenu;
@class SceneGame;
@class SceneLibrary;

#define CREATE_BTN_BACK(CallBack) [CCMenuItemImage itemFromNormalImage : @"btn_back.png" selectedImage : nil target : self selector : @selector(CallBack:)];
#define CREATE_BTN_MENU(CallBack) [CCMenuItemImage itemFromNormalImage : @"btn_menu.png" selectedImage : nil target : self selector : @selector(CallBack:)];
#define BTN_MOVE_TIME 0.2f

extern bool g_FlagChinese;
extern bool g_FlagCheckRate;
extern CGSize g_ScrrenSize;
extern CGPoint g_ScrrenCenter;
extern float g_ContentScalerFactor;

/*dummy*/
extern int g_SpriteDummyType;

/*menu*/
extern SceneMenu *g_SceneMenu;

/*game*/
extern SceneGame *g_SceneGame;
extern float g_ParabolaScaleRatio;
extern float g_ParabolaSpeedScaleRatio;

/*library*/
extern SceneLibrary *g_SceneLibrary;

/*mission*/
extern bool g_ChpaterComicPrev;
extern int g_ChapterMissionID;
extern int g_ChapterNextMissionID;

void InitParabolaSpeedRatio(float Distance, float MaxMove);
CGPoint ConvertPositionInPixelsToPosition(CGPoint PositionInPixels);
CGPoint ConvertPositionToPositionInPixels(CGPoint Postion);

#endif